package com.atguigu.ArrayList;

/**
 * @author durant
 * @create 2021-10-21 16:46
 */
public class ArrayListTest {
    public static void main(String[] args) {
        testaddindex();

    }
    public static void testadd(){
        ArrayList01<Integer> list=new ArrayList01<>();
        //当前集合是否为空
        System.out.println(list.isempty());
        System.out.println(list.count());
        for (int i = 1; i < 7; i++) {
            list.add(i);
            System.out.println(list.toString());
        }
    }
    public static void testaddindex(){
        ArrayList01<Integer> list=new ArrayList01<>();

        list.addFirst(333 );
        list.addFirst(222 );
        list.addLast(444 );
        list.add(555,1 );
       list.add(11, 5);
        System.out.println(list.toString());
    }

}
